package com.yanqu.road.logic.bussiness.union.cross;

import com.yanqu.road.entity.union.parergon.UnionBussinessman;
import com.yanqu.road.entity.union.parergon.UnionBussinessmanDetail;
import com.yanqu.road.entity.union.parergon.UnionParergon;
import com.yanqu.road.entity.union.parergon.UnionParergonPlayer;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;


public class CrossUnionParergonBussiness {

	public static Integer getMaxBussinessId() {
		return DaoHelper.getCrossUnionBussinessManDaoImpl().getMaxBussinessId();
	}

	public static Map<Integer, UnionBussinessman> getUnionBussinessmanMap() {
		return DaoHelper.getCrossUnionBussinessManDaoImpl().getUnionBussinessmanMap();
	}
	public static Map<Integer, List<UnionBussinessmanDetail>> getUnionBussinessmanDetail() {
		return DaoHelper.getCrossUnionBussinessManDetailDaoImpl().getUnionBussinessManDetail();
	}


	public static Map<String, UnionParergon> getUnionParergonMap() {
		return DaoHelper.getCrossUnionParergonDaoImpl().getUnionParergonMap();
	}
	public static Map<Long, UnionParergonPlayer> getUnionParergonPlayerMap() {
		return DaoHelper.getCrossUnionParergonPlayerDaoImpl().getUnionParergonPlayerMap();
	}

	public static boolean addUnionParergon(UnionParergon parergon) {
		return DaoHelper.getCrossUnionParergonDaoImpl().add(parergon);
	}

	public static boolean updateUnionParergon(UnionParergon parergon) {
		return DaoHelper.getCrossUnionParergonDaoImpl().update(parergon);
	}

	public static boolean addUnionParergonPlayer(UnionParergonPlayer parergonPlayer) {
		return DaoHelper.getCrossUnionParergonPlayerDaoImpl().add(parergonPlayer);
	}

	public static boolean updateUnionParergonPlayer(UnionParergonPlayer parergonPlayer) {
		return DaoHelper.getCrossUnionParergonPlayerDaoImpl().update(parergonPlayer);
	}

	public static boolean addUnionBussinessman(UnionBussinessman bussinessman) {
		return DaoHelper.getCrossUnionBussinessManDaoImpl().add(bussinessman);
	}

	public static boolean updateUnionBussinessman(UnionBussinessman bussinessman) {
		return DaoHelper.getCrossUnionBussinessManDaoImpl().update(bussinessman);
	}

	public static boolean addUnionBussinessmanDetail(UnionBussinessmanDetail detail) {
		return DaoHelper.getCrossUnionBussinessManDetailDaoImpl().add(detail);
	}

	public static boolean updateUnionBussinessmanDetail(UnionBussinessmanDetail detail) {
		return DaoHelper.getCrossUnionBussinessManDetailDaoImpl().update(detail);
	}

}
